package network.themis.rms.console.repo.biz;

import network.themis.rms.console.entity.biz.Contact;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

/**
 * @author ccl
 * @time 2018-07-20 13:51
 * @name ContactRepo
 * @desc:
 */
public interface ContactRepo extends CrudRepository<Contact,Long> {
    Contact findContactById(Long id);
    Page<Contact> findAll(Pageable pageable);

    Contact findByCode(String code);
}